.main {
  width: 750px;
  height: 100vh;
  margin: auto;
  padding: 20px;
  background-color: #f5f5f5;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
}

.form-container {
  width: 100%;
  margin: 20px auto;
}
.form-container .form {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.form-container .input-container {
  flex: 1;
  display: block;
}
.form-container .input-container input {
  width: calc(100% - 40px);
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: large;
  padding: 0 20px;
}
/* input聚焦时样式 */
.form-container .input-container input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

.form-container .form-button {
  width: 100px;
  padding: 10px 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: large;
}

.todo-list {
  width: 100%;
}
.todo-list .todo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #ccc;
  cursor: pointer;
}
.todo-list .todo.completed {
  text-decoration: line-through;
  color: #888;
}

.todo-list .todo  .task {
  flex: 1;
  margin-right: 10px;
  font-size: large;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.todo-list .todo button {
    width:50px;
  background-color: transparent;
  border: none;
  border-radius: 4px;
  padding: 10px 5px;
  cursor: pointer;
  margin-right:6px;
}

.todo button.delete {
  background-color:#ff4500;
  color: #fff;
}
.todo-list .todo button.done {
  background-color: #007bff;
  color: #fff;
}

/* 添加动画效果 */
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.5s; 
}
